<div class="span3 bs-docs-sidebar">
    <ul class="nav nav-list bs-docs-sidenav">
        <li><?php echo anchor('admin/addTransaksi', '<i class="icon-chevron-right"></i>Add Transaksi') ?></li>
        <li><?php echo anchor('admin/addDetailTransaksi', '<i class="icon-chevron-right"></i>Add Detail Transaksi') ?></li>
        <li><?php echo anchor('admin/transaksi', '<i class="icon-chevron-right"></i>Transaksi') ?></li>
    </ul>
</div>
<div class="span9">
    <section id="transaksi">
        <?php echo form_open('admin/addTrans', 'class="bs-docs-example form-horizontal"') ?>
        <legend>Tambah Transaksi</legend>
        <div class="control-group">
            <label class="control-label">Invoice ID</label>
            <div class="controls">
                <input class="input-xlarge" id="disabledInput" type="text" placeholder="<?php echo $id[0]->nextId+1 ?>" name="id">
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">Date</label>
            <div class="controls">
                <input type="text" placeholder="<?php echo date('Y-m-d'); ?>" name="date">
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">Customer</label>
            <div class="controls">
                <select name="cus">
                    <?php foreach ($customer as $data) : ?>
                        <option value="<?php echo $data->id ?>"><?php echo $data->nama ?></option>
                    <?php endforeach; ?>
                </select>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" >Jenis</label>
            <div class="controls">
                <select name="jenis">
                    <?php foreach ($jenis as $jns) : ?>
                        <option value="<?php echo $jns->id ?>"><?php echo $jns->data ?></option>
                    <?php endforeach; ?>
                </select>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">Qty</label>
            <div class="controls">
                <input type="text" placeholder="Quantity" name="qty">
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">Discount</label>
            <div class="controls">
                <input type="text" placeholder="Discount" name="disc">
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" >Status</label>
            <div class="controls">
                <select name="status">
                    <option value="Hutang">Hutang</option>
                    <option value="Lunas">Lunas</option>
                </select>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">Start date</label>
            <div class="controls">
                <input type="text" placeholder="<?php echo date('Y-m-d'); ?>" name="start">
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">End Date</label>
            <div class="controls">
                <input type="text" placeholder="<?php echo date('Y-m-d'); ?>" name="end">
            </div>
        </div>
        <div class="control-group">
            <div class="controls">
                <button type="submit" class="btn btn-primary">Add</button>
            </div>
        </div>
        <?php echo form_close() ?>
    </section>
</div>